<template>
    <div style="width: 800px;height:600px" id="box">
    </div>
</template>

<script>
import * as echarts from 'echarts';
export default {
        mounted(){
            // 基于准备好的dom，初始化echarts实例
            var myChart = echarts.init(document.getElementById('box'));
            // 绘制图表
            myChart.setOption({
            title: {
                text: '总营业额'
            },
            tooltip: {},
            xAxis: {
                data: ['', '', '', '', '', '']
            },
            yAxis: {},
            series: [
                {
                name: '',
                type: 'bar',
                data: [5, 20, 36, 10, 10, 20]
                }
            ]
            });
        }        
        
    }
</script>

<style lang="scss" scoped>

</style>